import request from '@/utils/request'

// 查询能耗记录列表
export function listDispatchEnergyConsumptionRecords(query) {
  return request({
    url: '/system/dispatchEnergyConsumptionRecords/list',
    method: 'get',
    params: query
  })
}

// 查询能耗记录详细
export function getDispatchEnergyConsumptionRecords(energyConsumptionRecordsId) {
  return request({
    url: '/system/dispatchEnergyConsumptionRecords/' + energyConsumptionRecordsId,
    method: 'get'
  })
}

// 新增能耗记录
export function addDispatchEnergyConsumptionRecords(data) {
  return request({
    url: '/system/dispatchEnergyConsumptionRecords',
    method: 'post',
    data: data
  })
}

// 修改能耗记录
export function updateDispatchEnergyConsumptionRecords(data) {
  return request({
    url: '/system/dispatchEnergyConsumptionRecords',
    method: 'put',
    data: data
  })
}

// 删除能耗记录
export function delDispatchEnergyConsumptionRecords(energyConsumptionRecordsId) {
  return request({
    url: '/system/dispatchEnergyConsumptionRecords/' + energyConsumptionRecordsId,
    method: 'delete'
  })
}
